import request from '@/utils/request'

// 查询物品信息列表
export function listPorp(query) {
  return request({
    url: '/category/porp/list',
    method: 'get',
    params: query
  })
}

// 查询物品信息详细
export function getPorp(propId) {
  return request({
    url: '/category/porp/' + propId,
    method: 'get'
  })
}

// 新增物品信息
export function addPorp(data) {
  return request({
    url: '/category/porp',
    method: 'post',
    data: data
  })
}

// 修改物品信息
export function updatePorp(data) {
  return request({
    url: '/category/porp',
    method: 'put',
    data: data
  })
}

// 删除物品信息
export function delPorp(propId) {
  return request({
    url: '/category/porp/' + propId,
    method: 'delete'
  })
}
